import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'FittedBox Demo',
      home: FittedBoxDemo(),
    );
  }
}

class FittedBoxDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('FittedBox Demo'),
      ),
      body: Center(
        child: Container(
          width: 100,
          height: 100,
          color: Colors.blue,
          child: FittedBox(
            fit: BoxFit.scaleDown,
            child: Text(
              'Hello, FittedBox!',
              style: TextStyle(color: Colors.white, fontSize: 30),
            ),
          ),
        ),
      ),
    );
  }
}
